/*
 * @Description: 表单校验规则
 * @Author: chenju
 * @Date: 2022-03-22 17:46:03
 * @LastEditors: qingyang
 * @LastEditTime: 2023-07-26 17:43:53
 */
export const rules = {
  organizationCode: [
    {
      required: true,
      message: '请选择组织名称',
      trigger: ['submit', 'change']
    }
  ],
  companyName: [
    {
      required: true,
      message: '企业不能为空',
      trigger: ['submit', 'change']
    }
  ],
  creator: [
    {
      required: true,
      message: '发起人不能为空',
      trigger: ['submit', 'change']
    }
  ],
  creatorEmail: [
    {
      required: true,
      message: '邮箱不能为空',
      trigger: ['submit', 'change']
    }
  ],
  fillFrequency: [
    {
      required: true,
      message: '请选择填报频次',
      trigger: ['submit', 'change']
    }
  ],
  fillPeriod: [
    {
      required: true,
      message: '请选择填报周期',
      trigger: ['submit', 'change']
    }
  ],
  fillOrganization: [
    {
      required: true,
      message: '请选择填报组织',
      trigger: ['submit', 'change']
    }
  ],
  auditorId: [
    {
      required: true,
      message: '请选择审核人',
      trigger: ['submit', 'change']
    }
  ]
};

export const typeOption = [
  {
    value: 'COAL',
    label: '煤'
  },
  {
    value: 'FUEL_OIL',
    label: '燃料油'
  },
  {
    value: 'FUEL_GAS',
    label: '燃料气'
  },
  {
    value: 'OUTSOURCED_ELECTRICITY',
    label: '外购电力'
  },
  {
    value: 'OUTSOURCED_HEAT',
    label: '外购热力'
  },
  {
    value: 'OTHER',
    label: '其他'
  }
];

export const dataUnitOption = [
  {
    value: 'g',
    label: 'g'
  },
  {
    value: 't',
    label: 't'
  },
  {
    value: 'kg',
    label: 'kg'
  },
  {
    value: 'L',
    label: 'L'
  },
  {
    value: 'm³',
    label: 'm³'
  },
  {
    value: 'kWh',
    label: 'kWh'
  },
  {
    value: 'MWh',
    label: 'MWh'
  },
  {
    value: 'GJ',
    label: 'GJ'
  }
];

export const unitOption = [
  {
    value: 'g/g',
    label: 'g/g'
  },
  {
    value: 't/t',
    label: 't/t'
  },
  {
    value: 'kg/kg',
    label: 'kg/kg'
  },
  {
    value: 'kg/L',
    label: 'kg/L'
  },
  {
    value: 'kg/m³',
    label: 'kg/m³'
  },
  {
    value: 'kg/kWh',
    label: 'kg/kWh'
  },
  {
    value: 't/MWh',
    label: 't/MWh'
  },
  {
    value: 't/GJ',
    label: 't/GJ'
  },

  {
    value: 'kg/t·km',
    label: 'kg/t·km'
  },
  {
    value: 'kg/person·km',
    label: 'kg/person·km'
  },
  {
    value: 'kg/km',
    label: 'kg/km'
  },
  {
    value: 'kg/mile',
    label: 'kg/mile'
  },
  {
    value: 't/vehicle',
    label: 't/vehicle'
  },
  {
    value: 'kg/unit',
    label: 'kg/unit'
  },
  {
    value: 'kg/ha',
    label: 'kg/ha'
  },
  {
    value: 'kg/head·yr',
    label: 'kg/head·yr'
  }
];
